package cn.com.bluemoon.daps.model.dto.share;

import cn.com.bluemoon.daps.common.domain.UserPermissionApi;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class ShareTableIdVo implements UserPermissionApi<String> {

    @ApiModelProperty("模型id")
    @NotNull(message = "模型id不为空")
    private String modelId;

    @ApiModelProperty("表id")
    private List<String> tableIds;

    @Override
    public String getUserPermissionKeyValue() {
        return modelId;
    }
}
